<?php
class ModelTotalOrderDiscount extends Model {
    public function getOrderDiscount($data) {
        $temp_total = $data['subtotal'];
        $rate = $temp_total * -1 * ((1 * $this->config->get('order_discount_fee')) / 100);        
        
        return $rate;
    }
}
?>